Made network-bridge script work on ALL systems missing ifup/down.
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Tue, 10 Jan 2006 14:33:00 +0000 (14:33 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Tue, 10 Jan 2006 14:33:00 +0000 (14:33 +0000)
commitd8efb64a3a8bb67093d813762a818ad52983711f
tree1697e6786de0cb82f88835b683fadb38b9a8e226
parent9944daacf5637633b8a0780180de36142552e041
Made network-bridge script work on ALL systems missing ifup/down.
This is done by defining ifup/down both to 'false' when they're
missing; then instead of attempting to parse the IP params from
the kernel command line, we get them from 'ip' instead.  So this
works even with (for example) ip=dhcp on the kernel command line.

Also made a few minor syntax changes (in particular, replaced "=="
with "=", and ">&foo" with ">foo 2>foo") so this works with more
limited shells.

Signed-off-by: Ben Thomas <bjthomas3@gmail.com>
tools/examples/network-bridge
tools/examples/xen-network-common.sh